package com.example.service;

import com.alibaba.fastjson.JSONObject;
import com.example.entity.KnowledgeElement;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 *
 */
@Service
public interface KnowledgeElementService {
    public KnowledgeElement selectById(Long id);

    KnowledgeElement updateContent(KnowledgeElement knowledgeElement);

    JSONObject deleteById(Long id);

    JSONObject update(KnowledgeElement knowledgeElement);

    JSONObject selectAll();

    JSONObject insert(KnowledgeElement knowledgeElement);
}
